# -*- coding: utf-8 -*-
from wt.connector.db_manager.db_untils_tools import DBUntilsTools
from wt.connector.data_connect import DataConnect


class SelectDBManager(DataConnect, DBUntilsTools):

    def __init__(self, ):
        super().__init__()

    def exec_customer_sql(self, db, sql):
        res = self.exec_selectdb_sql(db, sql)
        return res

    def execute_drop_table(self, db, table):
        sql = "drop table {}.{}".format(db, table)
        res = self.exec_selectdb_sql(db, sql)
        return self.set_return_massage(res)


if __name__ == '__main__':
    a = SelectDBManager()
    a.exec_customer_sql()


